/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aeronef;

import com.jme3.asset.AssetManager;
import com.jme3.audio.AudioNode;

/**
 *
 * @author Hagan
 */
public class AudioManager {
    
    private AssetManager assetManager;
    private AudioNode musicAudio;
    
    public AudioManager(AssetManager assetManager) {
        this.assetManager = assetManager;
    }
    
    public void playAmbient() {
        musicAudio = new AudioNode(assetManager, "Sounds/necrimanci.ogg", true);
        musicAudio.setPositional(false);
        musicAudio.setDirectional(false);
        musicAudio.setLooping(false);
        musicAudio.play();
    }
}
